//ACV_Init_Server.sqf
#include "ACV_constantes.h"
if !(isNil "R3F_Param_Garbage_Auto") then {
	if (R3F_Param_Garbage_Auto) then {
		call compile preprocessFileLineNumbers "tmf\core\modules\r3f_acv\Scripts\ACV_Garbage.sqf";
	};
} else {
	R3F_Param_Garbage_Auto = False;
};
"ACV_NET_MakeObjects" addPublicVariableEventHandler {
	private ["_params","_type"];
	_params = (_this select 1);// Recuperation du tableau des parametres
	_type = _params select ACV_NET_PARAM_TYPE;// Type de creation demandee par le client
	//diag_log format["SERVER-> Recept %1", _params];
	if ((_type == ACV_NET_MAKESIMPLEOBJECT) || (_type == ACV_NET_MAKEAMMOBOX)) then {
		//diag_log format["SERVER-> Recept Creation Objects/Ammo"];
		[_params] call ACV_FNCT_MakeObjects;
	};
};
"ACV_NET_MakeUnits" addPublicVariableEventHandler {
	private ["_params","_type"];
	_params = (_this select 1);// Recuperation du tableau des parametres
	_type = _params select ACV_NET_PARAM_TYPE;// Type de creation demandee par le client
	//diag_log format["SERVER-> Recept %1", _params];
	if (_type == ACV_NET_MAKEUNITS) then {
		//diag_log format["SERVER-> Recept Creation Units"];
		[_params] call ACV_FNCT_MakeUnits;
	};
};
"ACV_NET_MakeVehicles" addPublicVariableEventHandler {
	private ["_params","_type"];
	_params = (_this select 1);// Recuperation du tableau des parametres
	_type = _params select ACV_NET_PARAM_TYPE;// Type de creation demandee par le client
	//diag_log format["SERVER-> Recept %1", _params];
	if (_type == ACV_NET_MAKEVEHICLES) then {
		//diag_log format["SERVER-> Recept Creation Vehicles"];
		[_params] call ACV_FNCT_MakeVehicles;
	};
};
"ACV_NET_MakeGroups" addPublicVariableEventHandler {
	private ["_params","_type"];
	_params = (_this select 1);// Recuperation du tableau des parametres
	_type = _params select ACV_NET_PARAM_TYPE;// Type de creation demandee par le client
	//diag_log format["SERVER-> Recept %1", _params];
	if( _type == ACV_NET_MAKEGROUPS ) then {
		//diag_log format["SERVER-> Recept Creation Groups"];
		[_params] call ACV_FNCT_MakeGroups;
	};
};
"ACV_NET_DeleteObject" addPublicVariableEventHandler {
	private ["_params","_type"];
	_params = (_this select 1);
	//diag_log format["SERVER-> Recept DeleteObject %1", _params];
	[_params] call ACV_FNCT_DeleteObject;
};
"ACV_NET_DeleteUnit" addPublicVariableEventHandler {
	private ["_params","_type"];
	_params = (_this select 1);
	//diag_log format["SERVER-> Recept DeleteUnits %1", _params];
	[_params] call ACV_FNCT_DeleteUnit;
};